import request from '../utils/request'
import { get,post } from './base'

export function idcardUp(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/certification',
    method: 'post',
    data
  })
}
export function getUserInfo(params) {
  return request({
    url: 'v1/user/get-user-info',
    method: 'get',
    params
  })
}

export function getConversation(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/get-conversation',
    method: 'post',
    data
  })
}

export function complain(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/complain',
    method: 'post',
    data
  })
}
export function searchQa(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/accessor/question-search',
    method: 'get',
    params
  })
}
export function getQalist(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/accessor/get-question',
    method: 'get',
    params
  })
}
export function getService(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/get-service',
    method: 'post',
    data
  })
}
export function withDraw(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/withdraw/apply',
    method: 'post',
    data
  })
}
export function logOff(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/logoff',
    method: 'post',
    data
  })
}
export function getVersion(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/accessor/get-version',
    method: 'get',
    params
  })
}
export function getImpay(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/im/get-im-info',
    method: 'get',
    params
  })
}
export function RanterImpay(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v3/im/consumer-landlord',
    method: 'post',
    data
  })
}
export function BuyImpay(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/im/consume-owner-contact',
    method: 'post',
    data
  })
}
export function virtualNum(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/extra/request-virtual-num',
    method: 'post',
    data
  })
}
export function changerole(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/change-role',
    method: 'post',
    data
  })
}
export function getGrabinfo(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v3/agent/grab-info',
    method: 'get',
    params
  })
}
export function grabOrderInfo(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/agent/trust-info',
    method: 'get',
    params
  })
}
export function getGraborder(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/agent/trust-confirm',
    method: 'post',
    data
  })
}
export function cancelGraborder(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/agent/trust-cancel',
    method: 'post',
    data
  })
}
export function agentOrderList(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/agent/service-manage',
    method: 'get',
    params
  })
}
export function buyOrderList(params) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/user/service-manage',
    method: 'get',
    params
  })
}
export function orderComplete(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/serve/trust-finish',
    method: 'post',
    data
  })
}
export function orderEvaluate(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/serve/evaluate',
    method: 'post',
    data
  })
}
export function ownerEntrust(data) {
  return request({
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    },
    url: 'v1/owner/agent-trust',
    method: 'post',
    data
  })
}

export function getGeoIp(params) {
  return get('v1/accessor/geo-ip', params)
}
export function amountLog(params) {
  return post('/v3/user/amount-log', params)
}
export function getRedPacket(params) {
  return post('/v3/user/get-red-packet', params)
}
export function deleteHouse(params) {
  return post('/v3/user/delete-house', params)
}
export function applyBond(params) {
  return post('/v1/order/apply-bond', params)
}
export function bondList(params) {
  return post('/v1/order/bond-list', params)
}
export function getMoney(params) {
  return post('/v3/user/get-money', params)
}
export function addLog(params) {
  return post('v3/index/add-log', params)
}
export function businessCount(params) {
  return get('v3/index/business-count', params)
}
export function shareLink(params) {
  return post('v3/user/share-link', params)
}
export function getTurst(params) {
  return post('v3/agent/get-turst', params)
}
export function contactOwnerTrust(params) {
  return post('v3/user/contact-owner-trust', params)
}
export function certificationNew(params) {
  return post('v1/user/certification_new', params)
}
export function chaekCertification(params) {
  return post('/v1/user/chaek-certification', params)
}
export function applyDetail(params) {
  return post('/v1/agent/apply-detail', params)
}
export function checkHouse(params) {
  return post('/v3/user/check-house', params)
}
export function checkTrust(params) {
  return post('/v3/user/check-trust', params)
}
export function wantBuy(params) {
  return post('/v3/user/want_buy', params)
}
export function wantRent(params) {
  return post('/v3/user/want_rent', params)
}
export function wantUserList(params) {
  return get('/v3/user/want_user_list', params)
}
export function pushRent(params) {
  return post('/v3/user/push_rent', params)
}
export function pushRentList(params) {
  return get('/v3/user/push_rent_list', params)
}
export function recommendList(params) {
  return get('/v3/agent/recommend_list', params)
}